From 759f303897fac6f36977ba2fd42a062e05581232 Mon Sep 17 00:00:00 2001 From: Etienne Champetier Date: Thu, 9 Oct 2025 14:31:35 -0400 Subject: [PATCH] lua-cjson: bump minimum cmake version to 3.10 Starting cmake 4.0, anything under 3.5 produces an error, see https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html#policy-version Use a patch instead of CMAKE_OPTIONS so we don't forget to remove this hack. Signed-off-by: Etienne Champetier --- .../patches/900-cmake-4-compatibility.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lang/lua-cjson/patches/900-cmake-4-compatibility.patch diff --git a/lang/lua-cjson/patches/900-cmake-4-compatibility.patch b/lang/lua-cjson/patches/900-cmake-4-compatibility.patch new file mode 100644 index 0000000000..dd3880cf48 --- /dev/null +++ b/lang/lua-cjson/patches/900-cmake-4-compatibility.patch @@ -0,0 +1,12 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,8 +3,8 @@ + # Unix: export LUA_DIR=/home/user/pkg + # Windows: set LUA_DIR=c:\lua51 + ++cmake_minimum_required(VERSION 3.10) + project(lua-cjson C) +-cmake_minimum_required(VERSION 2.6) + + option(USE_INTERNAL_FPCONV "Use internal strtod() / g_fmt() code for performance") + option(MULTIPLE_THREADS "Support multi-threaded apps with internal fpconv - recommended" ON) -- 2.30.2